<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资源库</title>
<script src="../js/dtree/dtree.js" type="text/javascript"></script>
<link href="../js/dtree/dtree.css" rel="stylesheet" type="text/css">
<link href="../css/common.css" rel="stylesheet" type="text/css">
</head>
<body style=" text-align:left; padding:5px;">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td>
<script type="text/javascript">
d = new dTree("d");
d.config.useCookies=false;
d.config.closeSameLevel=true;
d.add(0,-1,"功能导航");

//迭代学期
<s:iterator value="listTerm" status="statTerm" >
d.add(99${termId},0,"${termName}","","${termName}","main"); 
</s:iterator>

//迭代课程
<s:iterator value="listCourseTeaClassFK" status="statCourseTeaClassFK" >
d.add(98${termId}${courseId},99${termId},"${courseName}","","${courseName}","main"); 
d.add(97${termId}${courseId},98${termId}${courseId},"课程公共文件资源","../TeacherCourseFileSrcPublic/listCourseFileSrcPublic.action?intercept=1&courseFileSrcPublic.courseId=${courseId}","课程公共文件资源","main"); 
d.add(96${termId}${courseId},98${termId}${courseId},"课程私有文件资源","../TeacherCourseFileSrcPrivate/listCourseFileSrcPrivate.action?intercept=1&courseFileSrcPrivate.courseId=${courseId}&courseFileSrcPrivate.author=${teacherUsername}","课程私有文件资源","main");
d.add(95${termId}${courseId},98${termId}${courseId},"在线讨论","","在线讨论","main");
d.add(94${termId}${courseId},98${termId}${courseId},"在线作业","","在线作业","main");
d.add(93${termId}${courseId},98${termId}${courseId},"在线测试","","在线测试","main");
</s:iterator>

<!--迭代课程公共文件资源分类-->
<s:iterator value="listCourseFileSrcCatePublic" status="statCourseFileSrcCatePublic">
d.add(92${termId}${courseId}${courseFileCateId},${termIdAndCourseIdString}${courseFileCateParentIdString},"${courseFileCateName}","../TeacherCourseFileSrcPublic/listCourseFileSrcPublic.action?intercept=1&courseFileSrcPublic.courseFileCategoryId=${courseFileCateId}&courseFileSrcPublic.courseId=${courseId}","${courseFileCateName}","main"); 
</s:iterator>

<!--迭代课程私有文件资源分类-->
<s:iterator value="listCourseFileSrcCatePrivate" status="statCourseFileSrcCatePrivate">
d.add(91${termId}${courseId}${courseFileCateId},${termIdAndCourseIdString}${courseFileCateParentIdString},"${courseFileCateName}","../TeacherCourseFileSrcPrivate/listCourseFileSrcPrivate.action?intercept=1&courseFileSrcPrivate.courseFileCategoryId=${courseFileCateId}&courseFileSrcPrivate.courseId=${courseId}","${courseFileCateName}","main"); 
</s:iterator>

document.write(d);
</script>
</td>	
  </tr>
</table>
</body>
</html>